package gdou.gym.vo;


public class MyPageInfo<T> {

    public static final String PageNum = "pageNum";
    public static final String PageSize = "pageSize";
    public static final String QueryInfo = "queryInfo";

    private int pageNo = 1, pageSize = 7;
    private T queryInfo;

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(String pageNo) {
        try {
            this.pageNo = Integer.parseInt(pageNo);
        } catch (NumberFormatException ignored) {
        }
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        try {
            this.pageSize = Integer.parseInt(pageSize);
        } catch (NumberFormatException ignored) {
        }
    }

    public T getQueryInfo() {
        return queryInfo;
    }

    public void setQueryInfo(T queryInfo) {
        this.queryInfo = queryInfo;
    }

    @Override
    public String toString() {
        return "MyPageInfo{" +
                "pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", queryInfo=" + queryInfo +
                '}';
    }
}
